home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT GETMULTILINESTARTCOMMENT.SCRIPT < prev    next >
Encoding:
Text File  |  1998-02-18  |  721 b   |  26 lines

  1. !!Script
  2. // Copyright ⌐ 1997-1998 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: DocumentTemplate 
  8. @Method: getMultilineStartComment - this method returns the string that
  9. starts a multiline comment. The default string is "/*". 
  10. @Syntax: documentTemplate.getMultilineStartComment()
  11. @Summary: getMultilineStartComment - returns the string that starts a multiline comment  
  12. */
  13.  
  14. function DoCommand()
  15. {
  16.   var editor = getActiveEditor();
  17.   if (editor)
  18.   {
  19.     var selection = editor.getSelection();
  20.     editor.replace("documentTemplate.getMultilineStartComment()", selection);
  21.     editor.setActive("Insert documentTemplate.getMultilineStartComment");
  22.   }
  23. }
  24.  
  25. !!/Script
  26.